
class RegexApi {
    // 手机号正则
    public static phoneRegex = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/;
    // 邮件正则
    public static emailRegex = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;
    // 中文正则
    public static chineseRegex = /^[\u4e00-\u9fff]+$/;
    // ascii 正则
    public static asciiRegex = /^[\x00-\x7F]+$/;
    // 用户名正则
    public static usernameRegex = /^[a-zA-Z0-9]{6,32}$/;
    // 常用密码规则
    public static passwordRegex = /^[\x00-\x7F]{6,18}$/;
}

export const regexApi = RegexApi;